package com.expertria.glex.state;

import com.expertria.glex.event.Events.Event;

public class StateChangeEvent extends Event {
	

	private String oldState;
	private String newState;

	public static class STATE {
		public final static String CHANGE = "CHANGE";
	}
	
	public StateChangeEvent(String oldState, String newState, Object v) {

		// public Event(String eventName, Object data)
		super(STATE.CHANGE, newState, v);
		this.oldState = oldState;
		this.newState = newState;
	}

	public String getOldState() {
		return oldState;
	}

	public String getNewState() {
		return newState;
	}
}